﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="main.aspx.cs" Inherits="main" %>


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>河南煤化鹤煤集团安全档案管理系统</title>
    <link href="css/public.css" type="text/css" rel="stylesheet">
    <link href="head/menu.css" type="text/css" rel="stylesheet">



    <script language="javascript">


        function visible_click() {
            if (td1.className == "") {

                td1.className = "tddisp";


            }
            else {
                td1.className = "";

            }

        }

        function zx() {
            if (!confirm("是否确定要注销？"))
                return false;
        }

        var OA_TIME = new Date(2008, 0, 19, 20, 14, 12);

        function timeview() {
            timestr = OA_TIME.toLocaleString();
            timestr = timestr.substr(timestr.indexOf(":") - 2);
            document.getElementById("time_area").innerHTML = timestr;
            OA_TIME.setSeconds(OA_TIME.getSeconds() + 1);
            window.setTimeout("timeview()", 1000);
        }


        function UploadComplete() {

            showCover();
            //控件宽
            var aw = 400;
            //控件高
            var ah = 80;
            //计算控件水平位置
            var al = (screen.width - aw) / 2;
            //计算控件垂直位置
            var at = (screen.height - ah) / 5;
            //内容管理
            var title = '';
            var icon = 'indi.gif';
            var cardID = '0';
            //输出提示框
            var div = document.createElement("div");
            div.id = "UploadChoose";
            div.innerHTML = '\
    <div style="background-color:#FFFFFF;position:absolute;top:' + at + 'px;left:' + al + 'px;width:' + aw + 'px;height:' + ah + 'px;border:2px solid #000000;text-align:center">\
        <div style="clear:both;background-color:#0099AA;line-height:25px;font-weight:bold;color:#FFFFFF;font-size:12px;padding-left:10px">' + title + '</div>\
        <div style="padding-top:30px;">\
        <div style="float:left;width:60px;padding-left:50px"><img src="images/' + icon + '" alert"Cardo" /></div>\
       <div style="float:left;width:180px;margin-top:13px;padding-left:0px"><b>正在获取数据，请等待...</b></div>\
    <div style="clear:both;text-align:center;margin-top:10px;padding-bottom:10px">\
            </div>\
        </div>\
    </div>';
            document.body.appendChild(div);

        }

        function closeAlert(alertid) {
            try {
                document.getElementById(alertid).outerHTML = '';
                closeCover();
            }
            catch (e) { }
        }


    </script>

    <script language="JavaScript">
        var obj = self.parent;
        var popWin = null;

        function showWizard(url) {
            var width = 250;
            var height = screen.availHeight;

            var szFeatures = "top=0,";
            szFeatures += "left=" + (screen.availWidth - width) + ",";
            szFeatures += "width=" + width + ",";
            szFeatures += "height=" + height + ",";
            szFeatures += "directories=no,";
            szFeatures += "status=yes,";
            szFeatures += "menubar=no,";
            szFeatures += "scrollbars=yes,";
            szFeatures += "resizable=yes";

            try {
                if (popWin != null) {
                    popWin.focus();
                    popWin.resizeTo(250, screen.availHeight);
                    popWin.moveTo(screen.availWidth - width, 0);
                    popWin.location = url;
                } else {
                    popWin = window.open(url, "a", szFeatures);
                    popWin.focus();
                }
            } catch (exception) {
                popWin = null;
                popWin = window.open(url, "a", szFeatures);
                popWin.focus();
            }

            var newWidth = screen.availWidth - width;
            obj.moveTo(0, 0);
            obj.resizeTo(newWidth, height);
            parent.guidewin = popWin;
            //alert(parent.guidewin.name);
        }

    </script>

    <script>
        function card() {
            var num = Math.random();
            window.showModalDialog("Desk/card.aspx?tmp=" + num + "", "window", "dialogWidth:417px;DialogHeight=400px;status:no;scroll=no;help:no");
        }


        function openplugin() {
            mytop = screen.availHeight - 500;
            myleft = 250;
            window.open("Desk/plugin.aspx", "plugin", "height=300,width=600,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=" + mytop + ",left=" + myleft + ",resizable=yes");
        }
    </script>

    <script src="public/public.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
        <!--#include file="public/pleasewait.htm"-->
        <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top">
                    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="top" height="126">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td valign="top">
                                            <table width="100%" height="72" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td valign="top" bgcolor="#287D9C">
                                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td width="73%">
                                                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 502px; height: 70px">
                                                                        <tr>
                                                                            <td>
                                                                              <img src="images/topbg.jpg" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                                <td width="27%" valign="top" class="headtd">
                                                                    <br>
                                                                    <span id="ShowTime"></span>

                                                                    <script>

                                                                        var aa = DateDemo();
                                                                        document.getElementById("ShowTime").innerHTML = " <font color='#ffffff'>今天是：<%=showtime %>&nbsp;&nbsp;" + aa + "</font>&nbsp;&nbsp;";
                                                                        function DateDemo() {
                                                                            var d, day, x, s = " ";
                                                                            var x = new Array("星期日", "星期一", "星期二");
                                                                            var x = x.concat("星期三", "星期四", "星期五");
                                                                            var x = x.concat("星期六");
                                                                            d = new Date();
                                                                            day = d.getDay();
                                                                            return (s += x[day]);
                                                                        }
                                                                    </script>

                                                                    <span id="time_area"></span><span id="liveclock"></span>

                                                                    <script language="javascript">
                                                                        function www_helpor_net() {
                                                                            var Digital = new Date()
                                                                            var hours = Digital.getHours()
                                                                            var minutes = Digital.getMinutes()
                                                                            var seconds = Digital.getSeconds()

                                                                            if (minutes <= 9)
                                                                                minutes = "0" + minutes
                                                                            if (seconds <= 9)
                                                                                seconds = "0" + seconds
                                                                            myclock = "<font color='#ffffff'>" + hours + ":" + minutes + ":" + seconds + "</font>"
                                                                            if (document.layers) {
                                                                                document.layers.liveclock.document.write(myclock)
                                                                                document.layers.liveclock.document.close()
                                                                            } else if (document.all)
                                                                                liveclock.innerHTML = myclock
                                                                            setTimeout("www_helpor_net()", 1000)
                                                                        }
                                                                        www_helpor_net();
                                                                        //-->                      
                                                                    </script>

                                                                    <br>
                                                                    <br>
                                                                    <div>
                                                                        欢迎您！
                                                                        <%=showpost%>
                                                                        &gt;
                                                                        <%=showrealname%>
                                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                        <%--<iframe name="tx" marginwidth="0" marginheight="0"
                                                                            src="Maintx.aspx" frameborder="0" width="70px" bordercolor="#EDEDED" height="11px"
                                                                            style="border-style: none" scrolling="no"></iframe>--%>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table width="100%" height="38" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td background="images/head_bg.jpg">
                                                        <table width="100%" height="38" border="0" cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td width="50">
                                                                    <img src="images/logo.jpg" width="50" height="38" border="0"></td>
                                                                <td width="939" class="headtd">
                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td style="width: 102px; height: 38px;" align="left">
                                                                                <ul id="UL1">
                                                                                    <li class="L22"><a href="Agenciestable.aspx" target="lform" onclick="UploadComplete();">
                                                                                        <span>
                                                                                            <img src="images/menu/netchat.gif" width="16px" height="16px" border="0">
                                                                                            <b><font color="#ffffff">机构管理</font></b></span></a></li>
                                                                                </ul>
                                                                            </td>
                                                                            <td style="width: 132px">
                                                                                <ul id="UL2">
                                                                                    <li class="L22"><a href="Employmenttable.aspx" target="lform" onclick="UploadComplete();">
                                                                                        <span>
                                                                                            <img src="images/menu/workflow.gif" width="16px" height="16px" border="0">
                                                                                            <b><font color="#ffffff">工伤事故管理</font></b></span></a></li>
                                                                                </ul>
                                                                            </td>
                                                                            <td style="width: 132px">
                                                                                <ul id="UL3">
                                                                                    <li class="L22"><a href="HumanManagetable.aspx" target="lform" onclick="UploadComplete();">
                                                                                        <span>
                                                                                            <img src="images/menu/comm.gif" width="16px" height="16px" border="0">
                                                                                            <b><font color="#ffffff">三违信息管理</font></b></span></a></li>
                                                                                </ul>
                                                                            </td>
                                                                            
                                                                            <td style="width: 132px">
                                                                                <ul id="UL4">
                                                                                    <li class="L22"><a href="TrainManagetable.aspx" target="lform" onclick="UploadComplete();">
                                                                                        <span>
                                                                                            <img src="images/menu/training.gif" width="16px" height="16px" border="0">
                                                                                            <b><font color="#ffffff">安全奖惩管理</font></b></span></a></li>
                                                                                </ul>
                                                                            </td>
                                                                            <td style="width: 80px">
                                                                                <ul id="UL10">
                                                                                    <li class="L22"><a href="RequementInquiry.aspx" target="lform" onclick="UploadComplete();">
                                                                                        <span>
                                                                                            <img src="images/menu/comm.gif" width="16px" height="16px" border="0">
                                                                                            <b><font color="#ffffff">查询</font></b></span></a></li>
                                                                                </ul>
                                                                            </td>
                                                                            <td style="width: 102px">
                                                                                <ul id="UL9">
                                                                                    <li class="L22"><a href="SystemManagetable.aspx" target="lform" onclick="UploadComplete();">
                                                                                        <span>
                                                                                            <img src="images/menu/system.gif" width="16px" height="16px" border="0">
                                                                                            <b><font color="#ffffff">系统管理</font></b></span></a></li>
                                                                                </ul>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table width="100%" height="16" border="0" cellpadding="0" cellspacing="0" background="images/head_line2.jpg">
                                                <tr>
                                                    <td>
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="61">
                                                                    <a href="javascript:void(0)">
                                                                        <img src="images/head_line8.jpg" width="59" height="15" border="0" onclick="card()"
                                                                            alt="关于我们"></a></td>
                                                                <td width="61">
                                                                    <a href="DIYMould/DIYMould.aspx" target="rform" onclick="UploadComplete();">
                                                                        <img src="images/head_line10.jpg" width="59" height="15" border="0" alt="工作台桌面模块设置"></a></td>
                                                                <td width="61">
                                                                    <a href="Desk/MyQx.aspx" target="rform" onclick="UploadComplete();">
                                                                        <img src="images/head_line11.jpg" width="59" height="15" border="0" alt="我的权限"></a></td>
                                                                <td width="9" style="height: 16px">
                                                                    &nbsp;</td>
                                                                <td width="629" background="images/head_line2.jpg">
                                                                    &nbsp;</td>
                                                                <td width="66">
                                                                    <a href="main_d.aspx" target="rform">
                                                                        <img src="images/head_line3.jpg" width="66" height="16" border="0"></a></td>
                                                                <td width="59">
                                                                    <a href="javascript:void(0)" onclick="history.back()">
                                                                        <img src="images/head_line4.jpg" width="59" height="16" border="0"></a></td>
                                                                <td width="61">
                                                                    <a href="javascript:void(0)" onclick="history.forward()">
                                                                        <img src="images/head_line5.jpg" width="61" height="16" border="0"></a></td>
                                                                <td width="59">
                                                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/head_line6.jpg"
                                                                        OnClick="ImageButton1_Click" /></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td valign="top">
                                            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td width="200" valign="top" background="images/left_bg.jpg" class="" id="td1">
                                                        <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td height="24" valign="top">
                                                                    <table width="100%" height="24" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                                                                        <tr align="center" bgcolor="#EFEFEF">
                                                                            <td width="33%">
                                                                                <a href="Desk/MyReminded.aspx" class="line_b" target="rform" onclick="UploadComplete();">
                                                                                    提醒设置</a></td>
                                                                            <td width="33%">
                                                                                <a href="HumanManage/Staff_list_show.aspx?tmp=0.47786982153005536&id=<%=staffid %>&ismain=1" class="line_b" target="rform" >
                                                                                    员工信息</a></td>
                                                                            <td width="33%">
                                                                                <a href="SystemManage/SystemPassword.aspx" class="line_b" target="rform" onclick="UploadComplete();">
                                                                                    修改密码</a></td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="top">
                                                                    <iframe name="lform" marginwidth="0" marginheight="0" src="Staffdivtable.aspx" frameborder="0"
                                                                        width="200px" bordercolor="#EDEDED" height="100%" style="border-style: none"></iframe>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td width="20" bgcolor="#E7E7E7">
                                                        <a href="javascript:void(0)">
                                                            <img src="images/left_b1.jpg" width="20" height="100%" border="0" onclick="visible_click()"></a>
                                                    </td>
                                                    <td valign="top">
                                                        <iframe frameborder="0" name="rform" marginwidth="0" marginheight="0" src="main_d.aspx"
                                                            width="100%" height="100%" scrolling="auto"></iframe>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" height="33">
                                <table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="center" background="images/tail_bg.jpg">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>